package ui;

public class SQLFormatter {
    public String formatSQLText(String sql) {
        // 这只是一个简单的示例实现，实际应用中应使用专业的SQL格式化库
        return sql.replace(";", ";\n")
                  .replace("FROM", "\nFROM ")
                  .replace("WHERE", "\nWHERE ")
                  .replace("GROUP BY", "\nGROUP BY ")
                  .replace("ORDER BY", "\nORDER BY ")
                  .replace("JOIN", "\nJOIN ");
    }
}